package com.glsc.ngateway.common.base.utils.redis;

import javax.validation.constraints.NotBlank;

/**
 * redis key
 *
 * @author xuchang
 */
public class RedisKey {
    public static final String OAFLOW_SYNC = "gateway:oaflow:sync:";

    public static final String GATEAY_OWNCLOUD_SYNC = "gateway:platform:owncloud:sync";
    public static final String GATEAY_OWNCLOUD_SYS_SYNC = "gateway:platform:owncloud:sync:";

    public static String getOaflowSyncKey(@NotBlank String workflowId, @NotBlank String taskId) {
        return OAFLOW_SYNC + workflowId + "-" + taskId;
    }
}
